package com.sinopec.ch34x.device.lifecycle

import com.sinopec.ch34x.device.core.init.ch34Driver
import com.sinopec.ch34x.device.core.instruct.InstructAble
import com.sinopec.ch34x.device.core.instruct.SimpleInstructAble
import kotlin.reflect.KProperty

class CreateInstruct() {

    private val simple by lazy {
        SimpleInstructAble {
            ch34Driver
        }
    }

    operator fun getValue(ref: Any?, kProperty: KProperty<*>): InstructAble? {
        return simple
    }

}